//
//  CustomizedQuoteViewModel.h
//  luGongPro
//
//  Created by 王庆学 on 2017/8/14.
//  Copyright © 2017年 王庆学. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "YSSecurities.h"
#import "ChartSocketController+Observe.h"
#import "EFSChartSocketManager.h"

typedef NS_ENUM(NSUInteger, CustomizedQuoteViewType){
    CustomizedQuoteViewTypeQuote,
    CustomizedQuoteViewTypeAdd,
    CustomizedQuoteViewTypeEmpty
};

@interface CustomizedQuoteViewModel : NSObject
@property (nonatomic, assign) CustomizedQuoteViewType type;
@property (nonatomic, copy) NSString * _Nullable quoteId;
@property (nonatomic, copy) NSString * _Nullable name;
@property (nonatomic, copy) NSString * _Nullable price;
@property (nonatomic, copy) NSString * _Nullable delta;
@property (nonatomic, copy) NSString * _Nullable deltaRate;
@property (nonatomic, strong) UIColor * _Nullable textColor;
@property (nonatomic, assign) BOOL selected;
@property (nonnull, strong) YSSecurities *securities;

+ (CustomizedQuoteViewModel *_Nullable)modelWithQuoteId:(NSString *_Nullable)quoteId;
+ (CustomizedQuoteViewModel *_Nullable)modelWithModel:(YSSecurities *_Nullable)model;
+ (CustomizedQuoteViewModel *_Nullable)addModel;
+ (CustomizedQuoteViewModel *_Nullable)emptyModel;

- (void)active;
- (void)deactive;

@property (nonatomic, strong) NSMutableArray * _Nullable quotesDataList;
@property (nonatomic, strong) NSDictionary *_Nullable quoteInfo;
@property (nonatomic, copy) NSString *bondCategory;
@property (nonatomic, assign) BOOL needRefreshAll;

@property (nonatomic, strong) RACSubject *appendSignal;
@property (nonatomic, strong) RACSubject *refreshSignal;
@property (nonatomic, strong) RACSubject *changedSignal;


@end
